try:
    num = int(input('请输入数字'))
except ValueError:
    print('输入错误')
else:
    if num % 2 == 0:
        print('为偶数')
    else:
        print('奇数')
finally:
    print('运行结束')